
// 自动生成模板Order
package order
import (
	"time"
)

// 订单管理 结构体  Order
type Order struct {
  OrderId  *int32 `json:"orderId" form:"orderId" gorm:"primarykey;column:order_id;"`  //orderId字段
  UserId  *int32 `json:"userId" form:"userId" gorm:"column:user_id;"`  //userId字段
  ProductId  *int32 `json:"productId" form:"productId" gorm:"column:product_id;"`  //productId字段
  OrderType  *string `json:"orderType" form:"orderType" gorm:"column:order_type;size:10;"`  //orderType字段
  Amount  *float64 `json:"amount" form:"amount" gorm:"column:amount;size:10;"`  //amount字段
  OrderStatus  *string `json:"orderStatus" form:"orderStatus" gorm:"column:order_status;size:10;"`  //orderStatus字段
  CreateTime  *time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;"`  //createTime字段
  PayTime  *time.Time `json:"payTime" form:"payTime" gorm:"column:pay_time;"`  //payTime字段
}


// TableName 订单管理 Order自定义表名 order
func (Order) TableName() string {
    return "order"
}





